package com.heqiang.controller.test;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/*
在引导类MySpringBootApplication同级包或者子级包中创建QuickStartController
默认扫描基础包下所有资源
 */
@Controller
//@ConfigurationProperties(prefix = "person")
public class QuickController2 {
    @Value("${name}")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @RequestMapping("/quick2")
    @ResponseBody
    public String quick(){
        return name;
    }

}
